package com.lovo.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lovo.boot.exception.GlobalHandleException;
import com.lovo.boot.model.dos.UserDO;
import com.lovo.boot.model.query.UserQuery;
import com.lovo.boot.model.vo.PageVO;


/**
 * @title 用户持久接口
 * @author: luo
 * @date: 2020/11/24 14:01
 */
public interface UserService extends IService<UserDO> {

    UserDO findByName(String name);


    PageVO<UserDO> findAll(UserQuery userQuery) ;

    UserDO addUser(UserDO userDO) throws GlobalHandleException;

    void deleteUser(String  userId) throws GlobalHandleException;

    UserDO updateUser(UserDO userDO) throws GlobalHandleException;

    UserDO login(UserDO userDO) throws GlobalHandleException;

    UserDO findByUserId(String userId) throws GlobalHandleException;

}
